home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- set xCenter to ((the left of sprite 4 + the right of sprite 4) / 2) + 1
- set yCenter to (the top of sprite 4 + the bottom of sprite 4) / 2
- set radius to the width of sprite 4 / 2
- set the trails of sprite 5 to 1
- repeat with n = 0 to 720
- if the mouseDown then
- go("Start")
- exit repeat
- end if
- set dy to float(radius) * float(sin((360 - n) * PI / 180.0))
- set dx to float(radius) * float(cos(n * PI / 180.0))
- drawLine(5, yCenter, xCenter, yCenter + dy, xCenter + dx)
- set the foreColor of sprite 5 to random(250)
- updateStage()
- end repeat
- set the trails of sprite 5 to 0
- end
-